﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Runtime.Remoting.Messaging;

using DAL;
using Model;

namespace BLL
{
	/// <summary>
    /// 已發送設備 業務類
    /// </summary>
    public class SentdeviceBLL : BaseBLL<Model.Sentdevice>
    {
		/// <summary>
        /// 子类数据访问类对象
        /// </summary>
		SentdeviceDAL childDAL = null;

		#region 重写父类的抽象方法
        /// <summary>
        /// 重写父类的抽象方法
        /// </summary>
        protected override void SetDAL()
        {
			childDAL = new DAL.SentdeviceDAL();
            dal = childDAL;//为父类变量赋值
        }
        #endregion

		#region 當前類業務類對象
		/// <summary>
        /// 當前類業務類對象
        /// </summary>
        public static SentdeviceBLL CurrBll
        {
            get
            {
                SentdeviceBLL bll = CallContext.GetData(typeof(SentdeviceBLL).Name) as SentdeviceBLL;
                if (bll != null)
                {
                    return bll;
                }
                else
                {
                    bll = new SentdeviceBLL();
                    CallContext.SetData(typeof(SentdeviceBLL).Name, bll);
                    return bll;
                }
            }
        }
        #endregion
    }
}
